import Game from "../game";

const {ccclass, property} = cc._decorator;

@ccclass
export default class TestSystem extends cc.Component {

    @property(Game)
    game: Game = null;

    onLoad () {

    }

    rotate(): void {
        this.game.curGoDownShape.rotate();

    }

    left(): void {
        this.game.curGoDownShape.goLeft();
    }
    
    right(): void {
        this.game.curGoDownShape.goRight();
    }

    start () {

    }

    stopGame(): void {
        this.game.unscheduleAllCallbacks();
    }

}
